<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Add Retailer</title>
</head>
<body>
	<form:form method="post" commandName="retailersListVO">
		<table border="0">
		<tr>
			<th width="11%">TIN NUMBER</th>
			<th width="11%">RETAILER NAME</th>
			<th width="11%">RETAILER ADDRESS</th>
			<th width="11%">RETAILER EMAIL ID</th>
			<th width="11%">RETAILER PHONE NUMBER</th>
			<th width="11%">RETAILER MOBILE NUMBER</th>
			<th width="11%">MONTH</th>
			<th width="11%">YEAR</th>
		</tr>
		<c:forEach items="${retailersListVO.retailersList}" var="retailer" varStatus="i">
			<tr>
				<td width="11%"><form:input path="retailersList[${i.index}].tinNumber" cssStyle="width:90%;"></form:input></td>
				<td width="11%"><form:input path="retailersList[${i.index}].retailerName" cssStyle="width:90%;"/></td>
				<td width="11%"><form:input path="retailersList[${i.index}].retailerAddress" cssStyle="width:90%;"/></td>
				<td width="11%"><form:input path="retailersList[${i.index}].retailerEmailId" cssStyle="width:90%;"/></td>
				<td width="11%"><form:input path="retailersList[${i.index}].retailerPhoneNumber" cssStyle="width:90%;"/></td>
				<td width="11%"><form:input path="retailersList[${i.index}].retailerMobileNumber" cssStyle="width:90%;"/></td>
				<td width="11%">
					<form:select path="retailersList[${i.index}].month" cssStyle="width:90%;">
						<form:options items="${monthMap}"/>
					</form:select>				
				</td>
				<td width="11%">
					<form:select path="retailersList[${i.index}].year" cssStyle="width:90%;">
						<form:options items="${yearMap}"/>
					</form:select>				
				</td>
			</tr>
			</c:forEach>
			<tr>
				<td colspan="2"><input type="submit" value="Submit">&nbsp;&nbsp;<input type="button" value="Cancel"></td>
			</tr>
		</table>
	</form:form>
	
</body>
</html>